﻿function fsearch()
{
var level="";
 for (i = 1; i < 5; i++)
{
    if($get("cbLevel"+i+"").checked==true)
    {
      level +=i+",";
    }
}
level=level.substring(0,level.length-1);
    var sear=$get('txtSear').value;
    while(sear.indexOf("/")>-1)
    {
        sear=sear.replace("/","");
    }
    location.href='/files/search-'+sear.replace(/\?/gi, '').replace(/-/gi, '').replace(/&/gi, '')+'-'+$get('sLearning').value+'-'+$get('sUsing').value+'-1-1-'+level+'.htm';
}
